package com.lei.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lei.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lei.eduservice.entity.vo.CourseInfoVo;
import com.lei.eduservice.entity.vo.CoursePublishVo;
import com.lei.eduservice.entity.vo.frontvo.CourseWebVo;
import com.lei.eduservice.entity.vo.frontvo.FCouseQueryVo;

import java.util.HashMap;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author 熊磊
 * @since 2020-06-04
 */
public interface EduCourseService extends IService<EduCourse> {

    String saveCourseInfo(CourseInfoVo courseInfoVo);

    CourseInfoVo getCourseInfo(String courseId);

    void updateCourseInfo(CourseInfoVo courseInfoVo);

    CoursePublishVo publishCourseInfo(String courseId);

    void deleteCourse(String courseId);

    HashMap<String, Object> getFrontCourseList(Page<EduCourse> coursePage, FCouseQueryVo fCouseQueryVo);

    CourseWebVo getBaseCourseInfo(String courseId);
}
